//
//  FMDBTools.h
//  Products_B
//
//  Created by lanou on 16/6/2.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ChuanzhiModel.h"
@interface FMDBTools : NSObject
+ (FMDBTools *)shareInstance;
- (void)openDB;
- (void)creatTableWithTableName:(NSString *)tableName;
- (void)insertDataWithTableName:(NSString *)tableName name:(NSString *)name phone:(NSString *)phone address:(NSString *)address isMoren:(BOOL)isMoren;
- (void)deleteDataWithTableName:(NSString *)tableName phone:(NSString *)phone;
- (void)updateDataWithTbleName:(NSString *)tableName name:(NSString *)name phone:(NSString *)phone address:(NSString *)address isMoren:(BOOL)isMoren;
- (NSMutableArray *)selectAllDataWthTableName:(NSString *)tableName;
- (ChuanzhiModel *)selectOneDataWithTableName:(NSString *)tableName phone:(NSString *)phone;
@end
